 package srdb.migration.schema.metadata;
 
 import java.util.ArrayList;
 
 public class DataType extends DBObject
 {
   private String name;
   private ArrayList<String> typeColumnsList = new ArrayList();
   private ArrayList<String> typeLablesList = new ArrayList();
   private String oid;
   private TypType typType;
   private String typRelId;
   private boolean isRecordType;
   private String internalLength;
   private String delimeter;
   private String element;
   private String inputfunction;
   private String outputFunction;
   private String typModInFunction;
   private String typModOutFunction;
   private String typAlign;
   private String typDefault;
   private String typStorage;
 
   public DataType(String name)
   {
     this.name = name;
   }
 
   public String getName()
   {
     return this.name;
   }
 
   public void setName(String name)
   {
     this.name = name;
   }
 
   public ArrayList<String> getTypeColumnsList()
   {
     return this.typeColumnsList;
   }
 
   public void setTypeColumnsList(ArrayList<String> typeColumnsList)
   {
     this.typeColumnsList = typeColumnsList;
   }
 
   public ArrayList<String> getTypeLabelsList()
   {
     return this.typeLablesList;
   }
 
   public void setTypeLabelsList(ArrayList<String> typeLabelsList)
   {
     this.typeLablesList = typeLabelsList;
   }
 
   public String getOid()
   {
     return this.oid;
   }
 
   public void setOid(String oid)
   {
     this.oid = oid;
   }
 
   public TypType getTypType()
   {
     return this.typType;
   }
 
   public void setTypType(TypType typType)
   {
     this.typType = typType;
   }
 
   public String getTypRelId()
   {
     return this.typRelId;
   }
 
   public void setTypRelId(String typRelId)
   {
     this.typRelId = typRelId;
   }
 
   public boolean isRecordType()
   {
     return this.isRecordType;
   }
 
   public void setIsRecordType(boolean isRecordType)
   {
     this.isRecordType = isRecordType;
   }
 
   public String getInternalLength()
   {
     return this.internalLength;
   }
 
   public void setInternalLength(String internalLength)
   {
     this.internalLength = internalLength;
   }
 
   public String getDelimeter()
   {
     return this.delimeter;
   }
 
   public void setDelimeter(String delimeter)
   {
     this.delimeter = delimeter;
   }
 
   public String getElement()
   {
     return this.element;
   }
 
   public void setElement(String element)
   {
     this.element = element;
   }
 
   public String getInputfunction()
   {
     return this.inputfunction;
   }
 
   public void setInputfunction(String inputfunction)
   {
     this.inputfunction = inputfunction;
   }
 
   public String getOutputFunction()
   {
     return this.outputFunction;
   }
 
   public void setOutputFunction(String outputFunction)
   {
     this.outputFunction = outputFunction;
   }
 
   public String getTypModInFunction()
   {
     return this.typModInFunction;
   }
 
   public void setTypModInFunction(String typModIn)
   {
     this.typModInFunction = typModIn;
   }
 
   public String getTypModOutFunction()
   {
     return this.typModOutFunction;
   }
 
   public void setTypModOutFunction(String typModOut)
   {
     this.typModOutFunction = typModOut;
   }
 
   public String getTypAlign()
   {
     return this.typAlign;
   }
 
   public void setTypAlign(String typAlign)
   {
     this.typAlign = typAlign;
   }
 
   public String getTypDefault()
   {
     return this.typDefault;
   }
 
   public void setTypDefault(String typDefault)
   {
     this.typDefault = typDefault;
   }
 
   public String getTypStorage()
   {
     return this.typStorage;
   }
 
   public void setTypStorage(String typStorage)
   {
     this.typStorage = typStorage;
   }
 
   public DBObject getParent()
   {
     return null;
   }
 
   public String getSchema()
   {
     return null;
   }
 
   public String getQuotedLableList() {
     String labels = "";
     for (int i = 0; i < this.typeLablesList.size(); i++) {
       labels = labels + "'" + (String)this.typeLablesList.get(i) + "'";
       if (i != this.typeLablesList.size() - 1) {
         labels = labels + ", ";
       }
     }
     return labels;
   }
 
   public String getQuotedColumnList() {
     String labels = "";
     for (int i = 0; i < this.typeColumnsList.size(); i++) {
       labels = labels + (String)this.typeColumnsList.get(i);
       if (i != this.typeColumnsList.size() - 1) {
         labels = labels + ", ";
       }
     }
     return labels;
   }
 
   public static enum TypType
   {
     COMPOSITE, 
     ENUMERATION;
 
     public String toString()
     {
       switch (DataType.TypType.values()[ordinal()]) {
       case COMPOSITE:
         return "c";
       case ENUMERATION:
         return "e";
       }
       throw new AssertionError("Unknown type: " + this);
     }
   }
 }

/* 

 * 
 */